﻿using System.Data.Entity;
using Nop.Core.Infrastructure;

namespace Spotshub.Plugin.Payments.GlobalPayments
{
    public class EfStartUpTask : IStartupTask
    {
        public void Execute()
        {
            //It's required to set initializer to null (for SQL Server Compact).
            Database.SetInitializer<GlobalPaymentsObjectContext>(null);
        }

        public int Order
        {
            //ensure that this task is run first 
            get { return 0; }
        }
    }
}
